﻿@model CERT.Models.LoginModel

@using (Html.BeginForm("JsonLogin", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { id = "loginForm" }))
{
    @Html.AntiForgeryToken()

   
    <div class="form-horizontal function-login  ">

        <div class="form-group">
            @Html.LabelFor(m => m.UserName, new { @class = "function-login input" })
            <div class="controls">
                @Html.TextBoxFor(m => m.UserName, new {  autofocus = "autofocus", id = "loginName" , @class = "function-login input"})
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(m => m.Password, new { @class = "form-label function-login input" })
            <div class="controls">
                @Html.PasswordFor(m => m.Password, new { @class = "function-login input" })
                @*  @Html.ValidationMessageFor(m => m.Password)*@
            </div>
        </div>
        <div class="form-group">
            <label class="checkbox">
                @Html.CheckBoxFor(m => m.RememberMe, new { @class = "input-xlarge", placeholder = "Remember Me?" }) Remember Me
            </label>
        </div>
        <div class="form-group">
            <input type="submit" class="btn btn-primary" name="Login" value="Log in" />
        </div>

        @Html.ValidationSummary()
    </div>
       

}
